import request from '@/utils/request'


export function getCourseType(data) {
    return request({
        url: '/courseCenter/courseType/getCourseType',
        method: 'post',
        data
    })
}

export function addCourse(data) {
    return request({
        url: '/courseCenter/course/addCourse',
        method: 'post',
        data
    })
}

export function getCourseWithIds(data) {
    return request({
        url: '/courseCenter/course/getCourseWithIds',
        method: 'post',
        data
    })
}

export function getCourse(data) {
    return request({
        url: '/courseCenter/course/getTopCourse',
        method: 'post',
        data
    })
}

export function deleteCourse(data) {
    return request({
        url: '/courseCenter/course/deleteCourse',
        method: 'post',
        data
    })
}

export function addChapter(data) {
    return request({
        url: '/courseCenter/course/addChapter',
        method: 'post',
        data
    })
}

export function getChapterByCourseId(data) {
    return request({
        url: '/courseCenter/course/getChapterByCourseId',
        method: 'post',
        data
    })
}

export function getCourseByCourseId(data) {
    return request({
        url: '/courseCenter/course/getCourseByCourseId',
        method: 'post',
        data
    })
}

export function getCompanyInfoWithTeacherList() {
    return request({
        url: '/identity/company/getCompanyInfoWithTeacherList',
        method: 'post',
    })
}